package com.dp.pojo;

import java.io.Serializable;
import java.util.Date;

import org.apache.struts2.json.annotations.JSON;

public class NewsAdsVo implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer adid;
    private String adtitle;
    private String adtext;
    private Integer adpictureid;
    private String adurl;
    private Integer adstandtime;
    private String adorder;
    private String ader;
    private Date createtime;
    private Date endtime;
    private Date begintime;
    private String note;
    private Integer position;	//新增字段：广告位置（1页眉2页中）
    private Integer adtype;
    private String adstatus;
    private String phone;
    private Integer isCallNow;
    
    public String getAdtitle() {
		return adtitle;
	}

	public void setAdtitle(String adtitle) {
		this.adtitle = adtitle;
	}

    public Integer getAdtype() {
		return adtype;
	}

	public void setAdtype(Integer adtype) {
		this.adtype = adtype;
	}

	public String getAdstatus() {
		return adstatus;
	}

	public void setAdstatus(String adstatus) {
		this.adstatus = adstatus;
	}

    public NewsAdsVo() {
    }

    public NewsAdsVo(Integer adid) {
        this.adid = adid;
    }

    public Integer getAdid() {
        return adid;
    }

    public void setAdid(Integer adid) {
        this.adid = adid;
    }

    public String getAdtext() {
        return adtext;
    }

    public void setAdtext(String adtext) {
        this.adtext = adtext;
    }

    public Integer getAdpictureid() {
        return adpictureid;
    }

    public void setAdpictureid(Integer adpictureid) {
        this.adpictureid = adpictureid;
    }

    public String getAdurl() {
        return adurl;
    }

    public void setAdurl(String adurl) {
        this.adurl = adurl;
    }

    public Integer getAdstandtime() {
        return adstandtime;
    }

    public void setAdstandtime(Integer adstandtime) {
        this.adstandtime = adstandtime;
    }

    public String getAdorder() {
        return adorder;
    }

    public void setAdorder(String adorder) {
        this.adorder = adorder;
    }

    public String getAder() {
        return ader;
    }

    public void setAder(String ader) {
        this.ader = ader;
    }

	@JSON(format="yyyy-MM-dd HH:mm:ss")
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

	@JSON(format="yyyy-MM-dd HH:mm:ss")
    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

	@JSON(format="yyyy-MM-dd HH:mm:ss")
    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
    
    public Integer getPosition() {
		return position;
	}

	public void setPosition(Integer position) {
		this.position = position;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getIsCallNow() {
		return isCallNow;
	}

	public void setIsCallNow(Integer isCallNow) {
		this.isCallNow = isCallNow;
	}

	@Override
    public int hashCode() {
        int hash = 0;
        hash += (adid != null ? adid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NewsAdsVo)) {
            return false;
        }
        NewsAdsVo other = (NewsAdsVo) object;
        if ((this.adid == null && other.adid != null) || (this.adid != null && !this.adid.equals(other.adid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
    	
    	return "com.dp.vo.NewsAdsVo[adid=" + adid+"]";
    }
 }